package com.scs.application.modules.fsd.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class SaveUserDTO {
    @NotBlank(message = "用户名不能为空")
    private String userName;
    @NotBlank(message = "登录密码不能为空")
    private String password;
    @NotBlank(message = "工号不能为空")
    private String jobNumber;
    @NotBlank(message = "职位不能为空")
    private String job;
    @NotBlank(message = "卡号不能为空")
    private String cardID;
    @NotNull(message = "指纹数量不能为空")
    private Integer fpNum;
    private String relateId;


    private String id;
    private Boolean disabled;

    public SaveUserDTO(String userName, String jobNumber, String password, String job, String cardID, String id, Boolean disabled, Integer fpNum, String relateId) {
        this.userName = userName;
        this.jobNumber = jobNumber;
        this.password = password;
        this.job = job;
        this.cardID = cardID;
        this.id = id;
        this.disabled = disabled;
        this.fpNum = fpNum;
        this.relateId = relateId;
    }
}
